package com.didd.core.sensitive.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 脱敏组件自动装配 <br>
 *
 * @author diddd
 * @date: 2021/7/28 16:49
 */
@Configuration
public class SensitiveAutoConfiguration {
    @Bean
    @ConditionalOnMissingBean(EntitySensitiveScanner.class)
    public EntitySensitiveScanner entitySensitiveScanner() {
        return new EntitySensitiveScanner();
    }
}
